$slideWidth:160px;
#app {

  // 主体区域
  .main-container {
    min-height: 100%;
    transition: margin-left .28s;
    margin-left: $slideWidth;
    min-width: 1120px;
    &.off{
      transition: 0s;
      margin-left: 0;      
    }
  }

   // 侧边栏
  .sidebar-container {
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }
    transition: width .28s;
    width: $slideWidth !important;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    // overflow: hidden;
    a {
      display: inline-block;
      width: 100%;
    }
    .svg-icon {
      margin-right: 16px;
      font-size: 16px;
      // 有下拉的一级菜单svg图标大小重设
      // 订单
      &.order{
        margin-left: -3px;
        margin-right: 13px;
        font-size: 22px;
      }
      // 微客
      &.member{
        margin-left: -2px;
        margin-right: 14px;
        font-size: 20px;
      }
      // 营销
      &.promotion{
        margin-left: -1px;
        margin-right: 14px;
        font-size: 18px;
      }
      // 数据
      &.data-analysis{
        margin-left: -2px;
        margin-right: 14px;
        font-size: 20px;
      }
      // 渠道
      &.channel{
        margin-left: -1px;
        margin-right: 14px;
        font-size: 18px;
      }
      // 合伙人
      &.partner{
        margin-left: -1px;
        margin-right: 14px;
        font-size: 18px;
      }
      // 招募员
      &.recruiter{
        margin-left: -2px;
        margin-right: 15px;
        font-size: 18px;
      }
      // 设置
      &.setting{
        margin-left: -1px;
        margin-right: 14px;
        font-size: 18px;
      }
    }
    .el-menu {
      border: none;
      width: 100% !important;
    }
  }
  .showSidebar{
    .side-logo{
      span{
        background: none!important;
      }
    }
  }
  .hideSidebar {
    .main-container {
      min-width: 1244px;
    }
    .side-logo{
      a{
        background: none!important;
      }
      span{
        width: 35px;
        height: 60px;
        // background:url('@/../../assets/images/logo-hide.png') no-repeat!important;
        display: inline-block;
      }
    }
    .sidebar-container {
      width: 36px !important;
    }
    .main-container {
      margin-left: 36px;      
    }
    .submenu-title-noDropdown {
      padding-left: 10px !important;
      margin-bottom: -10px;
      position: relative;
      .el-tooltip {
        padding: 0 9px !important;
      }
    }
    .el-submenu {
      &>.el-submenu__title {
        padding-left: 9px !important;
        &>span {
          height: 0;
          width: 0;
          overflow: hidden;
          visibility: hidden;
          display: inline-block;
        }
        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }
    .side-bar-default{
      span{
        display: none!important;
      }
    }
  }

  .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
  .sidebar-container .el-submenu .el-menu-item {
    min-width: $slideWidth !important;
    background-color: $subMenuBg !important;
    &:hover {
      background-color: $menuOnHover !important;
      color: #36a3f7!important;
    }
  }
  .el-menu--collapse .el-menu .el-submenu {
    min-width: $slideWidth !important;
  }
  .sidebar-container .el-submenu.customize-menu .el-menu-item{
    background-color: $menuOn !important;
    text-indent: 8px;
    &:hover {
      background-color: $menuOnHover !important;
    }
  }
  .el-menu--vertical .el-menu--popup .el-menu-item{
    background-color: $menuOn !important;
    text-indent: 8px;
    &:hover {
      background-color: $menuOnHover !important;
    }
  }
  .submenu-title-noDropdown {
    &.is-active{
      .side-icon-default{
        display: none;
      }
      .side-icon-hover{
        display: inline-block;
      }
    }
    &:hover {
      color: #36a3f7 !important;
      background-color: #1f2d3d !important;
    }
  }
  .side-bar-default{
    // 订单
    &.default-order{
      span{
        margin-top: -7px;
        display: inline-block;
      }
    }
    // 微客
    &.default-member{
      span{
        margin-top: -6px;
        display: inline-block;
      }
    }
    // 数据
    &.default-data-analysis{
      span{
        margin-top: -6px;
        display: inline-block;
      }
    }
    span{
      margin-top: -4px;
      display: inline-block;
    }
    &:hover {
      color: #36a3f7 !important;
      .side-icon-default{
        display: none;
      }
      .side-icon-hover{
        display: inline-block;
      }
    }
  }
  .side-icon-hover{
    display: none;
  }

  //适配移动端
  .mobile {
    .main-container {
      margin-left: 0px;
    }
    .sidebar-container {
      top: 50px;
      transition: transform .28s;
      width: $slideWidth !important;
    }
    &.hideSidebar {
      .sidebar-container {
        transition-duration: 0.3s;
        transform: translate3d(-$slideWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
